package client.comm.baoding.api.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

data class GoodsIndex(
    val banner_list: List<Banner>,
    val banner_list_hy: List<Banner>,//会员
    val banner_list_jf: List<Banner>,//积分
    val banner_list_lp: List<Banner>,//礼品
    val banner_list_yx: List<Banner>,//优选
//    val category_list: List<Category>,
    val jx_goods_list: List<JxGoods>,//会员专享
    val tj_goods_list: List<TjGoods>,
    val article_list: ArrayList<Article>,
    val category_btn: List<CategoryId>,
    val category_list_index: List<CategoryIndex>
) {
    data class Banner(
        val category_id: Any,
        val create_time: String,
        val goods_id: Any,
        val id: Int,
        val image_url: String,
        val link_url: String,
        val name: String,
        val priority: Int,
        val rich_text: Any
    )

    @Parcelize
    data class Article(
        val article_id: Int,
        val article_img: String,
        val article_img_list: List<String>,
        val article_time: String,
        val author: String,
        val content: String,
        val create_time: String,
        val status: Int,
        val title: String,
//         val update_time: String
    ) : Parcelable

//    data class Category(
//        val big_img: Any,
//        val category_id: Int,
//        val create_time: String,
//        val name: String,
//        val priority: Int,
//        val small_img: String
//    )

    data class CategoryId(
        val id: String,
    )

    data class JxGoods(
        val create_time: String,
        val goods_id: Int,
        val goods_img: String,
        val goods_status: Int,
        val integral: Int,
        val name: String,
        val old_price: String,
        val price: Double,
        val priority: Int,
        val sku: String,
        val status: Int,
        val stock_c: Int
    )

    data class TjGoods(
        val create_time: String,
        val goods_id: Int,
        val goods_img: String,
        val goods_status: Int,
        val integral: Int,
        val name: String,
        val old_price: String,
        val price: Double,
        val priority: Int,
        val sku: String,
        val sales: String, //销量
        val status: Int,
        val stock_c: String //库存
    )

    data class CategoryIndex(
        val category_id: String,
        val create_time: String,
        val name: String,
        val name_info: String,
        val small_img: String
//         val big_img: Any,
//         val priority: Int,

    )
}